<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app"></div>
    <template id="t1">
      <div>
        <h3>{{1+1/2+19-num}}</h3>
        <h3>{{ (10>100) || (10 < num) }}</h3>
        <h3>{{add(1,3)+100+num}}</h3>
        <h3>{{str.slice(1,3)}}</h3>
        <h3>{{Math.random()}}</h3>
        <!-- <h3>console.log('')</h3> -->
      </div>
    </template>
    <script src="./vue.js"></script>
    <script>
      const vm = new Vue({
        data: {
          str: "abcdefg",
          num: 100,
        },
        methods: {
          add(x, y) {
            return x + y;
          },
        },
        el: "#app",
        template: "#t1",
        mounted() {
          setTimeout(() => {
            this.t1 = "checkbox";
          }, 3000);
        },
      });
    </script>
  </body>
</html>
